﻿using Microsoft.Data.SqlClient;
using SqlserverPool.Console;
using System.Configuration;

class Program
{
    private static readonly string ConnectionString = ConfigurationManager.AppSettings["ConnectionString"];
    public static async Task Main(string[] args)
    {
        ToDoRepo toDoRepo = new ToDoRepo(ConnectionString);

        string query = "SELECT * FROM [dbo].[ToDo]";
        SqlParameter[] parameters = new SqlParameter[0];

        var result = await toDoRepo.GetAllAsync(query,parameters);
    }

}